//
//  UILabel + Extension.swift
//  微博Swift
//
//  Created by apple on 15/9/22.
//  Copyright © 2015年 cc. All rights reserved.
//

import UIKit

extension UILabel {
    
    // 便利构造函数
    convenience init(title: String, color: UIColor, fontSize: CGFloat) {
        self.init()
        
        text = title
        textColor = color
        font = UIFont.systemFontOfSize(fontSize)
        numberOfLines = 0
        textAlignment = NSTextAlignment.Center
        
        sizeToFit()
        
    }
    
}
